/*
 * Copyright 2008 David L. Whitehurst, Cape Henry Technologies Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cpht.app.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "issue_comments", catalog = "genesis_development")
public class IssueComment implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -8585909826428976639L;

    private int id;

    private String comment;

    private Integer issueId;

    private String status;

    private Date createDate;

    public IssueComment() {
    }

    public IssueComment(int id) {
        this.id = id;
    }

    public IssueComment(int id, String comment, Integer issueId,
            String status, Date createDate) {
        this.id = id;
        this.comment = comment;
        this.issueId = issueId;
        this.status = status;
        this.createDate = createDate;
    }

    @Id
    @Column(name = "id", unique = true, nullable = false)
    public int getId() {
        return this.id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Column(name = "comment", length = 65535)
    public String getComment() {
        return this.comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Column(name = "issue_id")
    public Integer getIssueId() {
        return this.issueId;
    }

    public void setIssueId(Integer issueId) {
        this.issueId = issueId;
    }

    @Column(name = "status")
    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Column(name = "create_date", length = 19)
    public Date getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

}
